using System;

namespace TestCases.CompareAssert.Core.Selectors
{
    public class SimpleTypeSelector: ITypeSelector
    {
        private static readonly SimpleTypeSelector _instance = new SimpleTypeSelector();

// Explicit static constructor to tell C# compiler not to mark type as beforefieldinit
// ReSharper disable EmptyConstructor
        static SimpleTypeSelector()
// ReSharper restore EmptyConstructor
        {
        }

        private SimpleTypeSelector()
        {
        }

        public static SimpleTypeSelector Instance
        {
            get { return _instance; }
        }        
        
        public Type[] SelectFrom(Type leftType, Type rightType)
        {
            return new[] {leftType, rightType};
        }
    }
}